import Vue from 'vue';
import App from './App.vue';
import ajax from './common/js/ajax'
const fun_aes = require('../static/js/aes');
let key = fun_aes.CryptoJS.enc.Utf8.parse("104982ebf97f44b5");
Vue.prototype.EncryptBASE64 = word=>{
    let srcs1 = fun_aes.CryptoJS.enc.Utf8.parse(word);
    let encrypted1 = fun_aes.CryptoJS.AES.encrypt(srcs1, key, {mode: fun_aes.CryptoJS.mode.ECB, padding: fun_aes.CryptoJS.pad.Pkcs7});
    //返回base64加密结果
    return encrypted1.toString();
}
import sha1 from './common/js/sha1';
Vue.prototype.sha1 = sha1;
import tools from './common/js/common';
Vue.prototype.tools = tools;
Vue.prototype.key ="hJi-pUDYofUcsMDoi3Mp4yOtTGiZax24EEmrzqTY";
Vue.prototype.baseUrl = "http://120.79.28.49:8080";
// Vue.prototype.baseUrl ="http://www.xuancollege.com:8080";
import router from './router';
Vue.use(ajax)
    // Vue.filter('unusual', function (val) {
//   if (!val) {
//     return '0'
//   } else {
//     return val
//   }
// })

Vue.config.productionTip = false
new Vue({
    el: '#app',
    router,
    template: '<App/>',
    components: { App }
})
